package spring3;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringAOPDemo {
	public static void main(String[] args) {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
				"spring3/applicationContext-reg.xml");
		IHello helloProxy = (IHello) context.getBean("helloProxy");
		
		helloProxy.hello("zhangsan");
		helloProxy.hello2("lisi");
		helloProxy.hi("wangwu");
		helloProxy.bye("xiaoming");
	}
}
